package Java练习.面向对象综合练习.抽象类;

public class Dog extends animal implements Swim{
    public Dog() {

    }

    public Dog(String name, int age) {
        super(name, age);
    }

    @Override
    public void eat() {
        System.out.println("狗吃骨头");
    }

    @Override
    public void swim() {
        System.out.println("狗在狗刨游泳");
    }
}
